cmake_minimum_required(VERSION 3.10)  # 最低 CMake 版本要求
project(MY_CPP_PROJECT)               # 项目名称



# 设置编译输出目录（目标文件 .obj/.o）
# set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
# set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
# set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)

# 收集源文件
set(SOURCES
    ./src/sensor.cpp
    ./src/discrete_sensor.cpp
    ./src/threshold_sensor.cpp
)

# 创建可执行目标
add_executable(TEST_1 main.cpp ${SOURCES})

# 包含头文件目录
target_include_directories(TEST_1 PUBLIC ./include)



